<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title>IP定位获取当前城市信息</title>
    <link rel="stylesheet" href="http://cache.amap.com/lbs/static/main.css"/>
    <script type="text/javascript"
            src="http://webapi.amap.com/maps?v=1.3&key=e303dae87fb68597e0101c7743159a66"></script>
    <script src="js/map.js"></script>
    <style type="text/css">
        #tip {
            height: 80px;
            width: 110px;
            background-color: #fff;
            padding-left: 10px;
            padding-right: 10px;
            position: absolute;
            font-size: 12px;
            right: 10px;
            bottom: 20px;
            border-radius: 3px;
            line-height: 45px;
            border: 1px solid #ccc;
        }

        #tip > div:first-child {
            width: 100%;
            height: 40px;
        }

        #tip input[type='button'] {
            margin-left: 10px;
            margin-right: 10px;
            margin-top: 10px;
            background-color: #0D9BF2;
            height: 30px;
            text-align: center;
            line-height: 30px;
            color: #fff;
            font-size: 12px;
            border-radius: 3px;
            outline: none;
            border: 0;
            float: right;
        }

    </style>
</head>
<body>
<div id="mapContainer"></div>
<div id="tip">
    <div>
        <input type="button" value="显示当前城市" onClick="javascript:showCityInfo()"/>
    </div>
    <div id="info"></div>
    <div style="color: #C0C0C0">不支持IE9以下版本</div>
</div>
<script type="text/javascript">

</script>
</body>
</html>						

	